package com.hssy.wululuaplan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 课时结余情况
 * </p>
 *
 * @author Mr.Hongtao
 * @since 2024-02-28
 */
@Getter
@Setter
@TableName("class_remain")
@ApiModel(value = "ClassRemain对象", description = "课时结余情况")
public class ClassRemain implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学生id")
    @TableField("student_id")
    private Integer studentId;

    @ApiModelProperty("总课时数")
    @TableField("total")
    private Integer total;

    @ApiModelProperty("剩余课时数")
    @TableField("remain")
    private Integer remain;

    @ApiModelProperty("免费课时数")
    @TableField("free")
    private Integer free;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("删除标识")
    @TableField("delete_flag")
    @TableLogic
    private Boolean deleteFlag;


}
